/**
 * 
 *  @project Air Traff Monitor
 * 
 *  @author M.Emre ATASEVER <m.emre.atas@gmail.com>
 *  @author M.Burak ALKAN <mburakalkan@gmail.com>
 *  @author H.Burak KARAMIK <bkaramik@gmail.com>
 *
 *	`Air Traffic Monitor' is distributed in the hope that it will be useful,
 *	but WITHOUT ANY WARRANTY; without even the implied warranty of
 *	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *	GNU General Public License for more details.
 *
 *	You should have received a copy of the GNU General Public License
 *	along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#include "viewtoolbar.h"

QKismetViewToolBar::QKismetViewToolBar(QKismetTreeView *view)
{
	addActions(view->menuActions());
	addWidget(&filter);
	connect(&filter, SIGNAL(textChanged(const QString&)), &view->proxy, SLOT(setFilterString(const QString&)));
	connect(&filter.acase, SIGNAL(toggled(bool)), &view->proxy, SLOT(setCaseSensitive(bool)));
	connect(&filter.acase, SIGNAL(toggled(bool)), &view->proxy, SLOT(setCaseSensitive(bool)));
	connect(&filter.ainv, SIGNAL(toggled(bool)), &view->proxy, SLOT(setInvert(bool)));
	connect(&filter, SIGNAL(modeChanged(filterMode)), &view->proxy, SLOT(setMode(filterMode)));
	setWindowTitle("Filter Toolbar");
}
